package com.tancire.question.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tancire.common.annotation.Excel;
import com.tancire.common.core.domain.BaseEntity;

/**
 * 面试题管理对象 question
 *
 * @author chenchao
 * @date 2024-06-07
 */
public class Question extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long questionId;

    /** 问题分类 */
    @Excel(name = "问题分类")
    private Long categoryId;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String categoryName;

    /** 问题 */
    @Excel(name = "问题")
    private String questionContent;

    /** 答案 */
    @Excel(name = "答案")
    private String questionAnswer;

    /** 问题比重 */
    @Excel(name = "问题比重")
    private Integer questionWeight;

    /** 所属行业 */
    @Excel(name = "所属行业")
    private Long sectorId;

    /** 所属行业名称 */
    @Excel(name = "所属行业名称")
    private String sectorName;

    /** 0 正常  1 删除  真删除，字段保留 */
    private Integer delFlag;

    public void setQuestionId(Long questionId) {
        this.questionId = questionId;
    }

    public Long getQuestionId() {
        return questionId;
    }
    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() {
        return categoryId;
    }
    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getCategoryName() {
        return categoryName;
    }
    public void setQuestionContent(String questionContent) {
        this.questionContent = questionContent;
    }

    public String getQuestionContent() {
        return questionContent;
    }
    public void setQuestionAnswer(String questionAnswer) {
        this.questionAnswer = questionAnswer;
    }

    public String getQuestionAnswer() {
        return questionAnswer;
    }
    public void setQuestionWeight(Integer questionWeight) {
        this.questionWeight = questionWeight;
    }

    public Integer getQuestionWeight() {
        return questionWeight;
    }
    public void setSectorId(Long sectorId) {
        this.sectorId = sectorId;
    }

    public Long getSectorId() {
        return sectorId;
    }
    public void setSectorName(String sectorName) {
        this.sectorName = sectorName;
    }

    public String getSectorName() {
        return sectorName;
    }
    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("questionId", getQuestionId())
            .append("categoryId", getCategoryId())
            .append("categoryName", getCategoryName())
            .append("questionContent", getQuestionContent())
            .append("questionAnswer", getQuestionAnswer())
            .append("questionWeight", getQuestionWeight())
            .append("sectorId", getSectorId())
            .append("sectorName", getSectorName())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
